﻿namespace UmbracoExtending.Dealer.Model.Dealer
{
    /// <summary>
    /// 经销商条目
    /// </summary>
    public class DealerItem
    {
        /// <summary>
        /// 经销商编号
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 所在省份
        /// </summary>
        public string Province { get; set; }

        /// <summary>
        /// 所在城市
        /// </summary>
        public string City { get; set; }

        /// <summary>
        /// 所在区/县
        /// </summary>
        public string District { get; set; }

        /// <summary>
        /// 详细地址
        /// </summary>
        public string Address { get; set; }

        /// <summary>
        /// 店铺名称
        /// </summary>
        public string StoreName { get; set; }

        /// <summary>
        /// 负责人
        /// </summary>
        public string ResponsiblePerson { get; set; }

        /// <summary>
        /// 联系电话
        /// </summary>
        public string ContactNumber { get; set; }


        /// <summary>
        /// 维度
        /// </summary>
        public decimal Lat { get; set; }

        /// <summary>
        /// 经度
        /// </summary>
        public decimal Lng { get; set; }


        /// <summary>
        /// 是否解析错误
        /// </summary>
        public string IsMistake { get; set; }

        public override string ToString()
        {
            return Newtonsoft.Json.JsonConvert.SerializeObject(this);
        }
    }
}
